package com.bulemobi.activity.ac_userCentre_Setting;

import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import com.bulemobi.net.tsz.afinal.FinalHttp;
import com.bulemobi.net.tsz.afinal.annotation.view.ViewInject;
import com.bulemobi.net.tsz.afinal.http.AjaxCallBack;
import com.bulemobi.net.tsz.afinal.http.AjaxParams;
import com.bulemobi.view.BaseActivity;
import com.bulemobi.view.titleView.ActionBarView;
import com.jsyh.hcb.R;

/**
 * Created by 武 on 2014/9/22 0022.
 * 修改交易密码
 */
public class Ac_Change_Trade_Password extends BaseActivity implements View.OnClickListener {
    @ViewInject(id = R.id.actionBar)
    ActionBarView actionBarView;
    @ViewInject(id = R.id.tv_forgetPw)
    TextView tv_forgetPw;
    @ViewInject(id = R.id.tv_confirm)
    TextView tv_confirm;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.ac_change_trade_password);
        initView();
    }

    private void initView() {
        actionBarView.title.setText(getResources().getString(R.string.ac_chang_trade_pass));
        tv_forgetPw.setOnClickListener(this);
        tv_confirm.setOnClickListener(this);
    }

    private void requestHttp(String url,AjaxParams params,String type){
        FinalHttp http = new FinalHttp();
        http.post(url,params,new AjaxCallBack<Object>() {
            @Override
            public void onStart() {
                showProgressDialog();
                super.onStart();
            }

            @Override
            public void onSuccess(Object o) {
                closeProgressDialog();
                super.onSuccess(o);
            }

            @Override
            public void onFailure(Throwable t, int errorNo, String strMsg) {
                closeProgressDialog();
                super.onFailure(t, errorNo, strMsg);
            }
        });
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            //忘记密码
            case R.id.tv_forgetPw:
                openActivity(Ac_Forget_Trade_pwd.class);
                break;
            //确定
            case R.id.tv_confirm:
                break;
        }
    }
}
